<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>节点列表</title>
    <link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
    <script src="<%=path%>/js/resizeIframe.js" type="text/javascript"></script>
    <script type="text/javascript">
      window.onload=function()
      {
      	 parent.location.hash="top";
         
		 resizeIframe();
      };
      
	
	function changeGrade(gradeId){
		window.location.href="<%=path %>/videoSearchClassGradeAndClassAction.action?videoGradeId="+gradeId;
	}
	
	 function go(url)
    {
      window.location.href=url;
    }
    </script>
  </head>
  
  <body>
  <form action="<%=path %>/setClassVideoUrlGradeAndClassAction.action" method="post">
  <input type="hidden" name="videoGradeId" value="${requestScope.videoGradeId }"/>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="left" class="f_5">查看教学现场</td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#9DD12E"></td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="bottom" background="<%=path %>/images/sywesp_24.gif">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="120" align="left" valign="top">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                  <td align="center" background="<%=path %>/images/sywesp_25.gif" class="f_9">班级监控现场</td>
                  <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
                </tr>
              </table></td>
              <td width="5" align="left">&nbsp;</td>
              
              <c:if test="${! empty sessionScope.roleIds}">
                  <c:if test="${fn:contains(sessionScope.roleIds,'sysadmin')}">
              <td width="120" align="left">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                    <td align="center" background="<%=path %>/images/sywesp_18.gif" class="f_6" onclick="go('<%=path %>/videoSearchSchoolGradeAndClassAction.action?');" style="cursor:pointer;">校园监控现场</td>
                    <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
                  </tr>
              </table>
              </td>
              
              <td width="5" align="left">&nbsp;</td>
              </c:if></c:if>
              <td align="left">&nbsp;
              </td>
              </tr>
        </table>
        
        </td>
      </tr>
      <tr>
        <td align="left" valign="top" class="tb_8 border_2">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="25" align="left" >
            <c:if test="${not empty requestScope.GRADELIST}">
               年级：<select onchange="changeGrade(this.value);">
               		
               			<c:forEach items="${requestScope.GRADELIST}" var="g">
               				<c:if test="${g.gradeId==requestScope.videoGradeId}">
               					<option value="${g.gradeId }" selected="selected">${g.name }</option>	
               				</c:if>
               				
               				<c:if test="${g.gradeId!=requestScope.videoGradeId}">
               					<option value="${g.gradeId }">${g.name }</option>	
               				</c:if>
               			</c:forEach>
               		
               		
               </select>
               </c:if>
               &nbsp;
             </td>
            <td align="right" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="2" height="24" align="left" background="<%=path %>/images/sywesp_21.gif"><img src="<%=path %>/images/sywesp_20.gif" width="2" height="24" /></td>
                      <td align="left" background="<%=path %>/images/sywesp_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="1%">&nbsp;</td>
                            <td width="5%" align="left" class="f_8" nowrap="nowrap"><img src="<%=path %>/images/sywesp_23.gif" width="8" height="22" align="absmiddle" />序号</td>
                            <td align="left" class="f_8" nowrap="nowrap"><img src="<%=path %>/images/sywesp_23.gif" width="8" height="22" align="absmiddle" />班级名称</td>
                                               
                          </tr>
                      </table></td>
                      <td width="4" align="right" background="<%=path %>/images/sywesp_21.gif"><img src="<%=path %>/images/sywesp_22.gif" width="4" height="24" /></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="25" align="left" valign="top" class="tb_7">
                        <c:choose>
                          <c:when test="${! empty requestScope.CLASSLIST}">
                            <c:forEach items="${requestScope.CLASSLIST}" var="c" varStatus="vs">
                              <table width="100%" border="0" cellspacing="1" cellpadding="0" style="border-bottom: solid #CCCCCC 1px;">
		                          <tr>
		                            <td width="1%" height="25" align="right" valign="bottom">&nbsp;</td>
		                            <td width="5%" align="left" valign="bottom">&nbsp;${vs.count }</td>
		                            <c:if test="${not empty c.videoUrl}">
		                            <td align="left" valign="bottom">&nbsp;<span style="cursor:pointer;color: blue;text-decoration: underline;" onclick="window.open('${c.videoUrl }','','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=on');">${c.name }</span></td>
		                          	</c:if>
		                          	<c:if test="${empty c.videoUrl}">
		                            <td align="left" valign="bottom">&nbsp;${c.name }</td>
		                          	</c:if>
                            		
		                          </tr>
		                       </table>
                            </c:forEach>
                          </c:when>
                          <c:otherwise><table align="center"><tr><td colspan="4" align="center"><font color="#CCCCCC">无相关信息</font></td></tr></table></c:otherwise>
                        </c:choose>
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" colspan="2" align="center">&nbsp;</td>
          </tr>
       
          
          
          
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
 </form>


  
  </body>
</html>
